<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Modele
 *
 * @author Loug S
 */
class Modele {
    //put your code here
    
    private $data;
    private $selectAll ;
    public function __construct($params=array()) {
        $this->data = $params;
        $config = require './config/conf.php';
        $this->db = new MyPDO($config['dsn'], $config['user'], $config['password']) ;
    }
    
   
    
    public function getAll(){
		$this->selectAll->execute();
		return $this->selectAll->fetchAll();
    }
     //fonction qui permet de récupérer les noms des colonnes
    public function query_columns() {}
}

?>
